package simpleSort;

import java.util.Random;

public class ArrayGenerator {

    public static Integer[] generatorOrderArray(int n){
        Integer[] arr = new Integer[n];
        for (int i = 0; i < n; i++) {
            arr[i] = i;
        }
        return arr;
    }

    public static Integer[] generatorRandomArray(int n,int bound){
        Random random = new Random();
        Integer[] arr = new Integer[n];
        for (int i = 0; i < n; i++) {
            int i1 = random.nextInt(bound);
            arr[i] = i1;
        }
        return arr;
    }
    private ArrayGenerator(){}
}
